//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package 力扣.test;

public class test1 {
    public test1() {
    }

    public static void main(String[] args) {
        System.out.println(smallestNumber(10));
        System.out.println(smallestNumber(3));
    }

    public static int smallestNumber(int n) {
        int out = 0;

        int i;
        for(i = 2; i - 1 < n; i *= 2) {
        }

        return i - 1;
    }
}
